package cn.liccshop.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import cn.liccshop.sys.base.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品评论表
 * </p>
 *
 * @author LiCC
 * @since 2019-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "shop_goods_comment")
public class ShopGoodsComment extends BaseBean {

private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     * 父评论ID
     */
    @TableField("parent_id")
    private String parentId;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 商品ID
     */
    @TableField("goods_id")
    private String goodsId;

    /**
     * 组合ID
     */
    @TableField("products_id")
    private String productsId;

    /**
     * 组合名称
     */
    @TableField("products_name")
    private String productsName;

    /**
     * 评论者ID
     */
    @TableField("member_id")
    private String memberId;

    /**
     * 评论者姓名
     */
    @TableField("member_name")
    private String memberName;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 评论时发布的图片，可上传多张图片
     */
    @TableField("picture")
    private String picture;

    /**
     * 评价打分（1至5分）
     */
    @TableField("points")
    private Integer points;

    /**
     * 追加内容
     */
    @TableField("reply_content")
    private String replyContent;

    /**
     * 追加时间
     */
    @TableField("reply_time")
    private LocalDateTime replyTime;

    /**
     * 赞数
     */
    @TableField("like_num")
    private Long likeNum;

    /**
     * 是否显示
     */
    @TableField("disabled")
    private Integer disabled;

    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建日期
     */
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private LocalDateTime createDate;

    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    /**
     * 更新日期
     */
    @TableField(value = "update_date", fill = FieldFill.UPDATE)
    private LocalDateTime updateDate;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 删除标识符
     */
    @TableField("del_flag")
    private Integer delFlag;


}
